<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Modallo demostration</title>
<link rel="stylesheet" type="text/css" href="css/modaloo.css">
<script src="library/modaloo.js"></script>
<script>
function callAlert()
{
	var objModaloo = new Modaloo();
	objModaloo.type = 'alert';
	objModaloo.text = 'teste';
	objModaloo.run();
}
function callDiv()
{
	var objModaloo = new Modaloo();
	objModaloo.type = 'div';
	objModaloo.text = 'teste';
	objModaloo.run();
}
function callNothing()
{
	var objModaloo = new Modaloo();
	objModaloo.type = 'fgdfgdfg';
	objModaloo.text = 'teste';
	objModaloo.run();
}
function callConfirm()
{
	var objModaloo = new Modaloo();
	objModaloo.type = 'confirm';
	objModaloo.text = 'Are you realy sure?';
	objModaloo.functionToTrue = 'alert(\'yes\')';
	objModaloo.functionToFalse = 'alert(\'not\')';
	ret = objModaloo.run();

}
function callIframe()
{
	var objModaloo = new Modaloo();
	objModaloo.type = 'iframe';
	objModaloo.url = 'iFrameModel.html';
	objModaloo.height = 500;
	objModaloo.width = 700;
	objModaloo.keyClosers = null;
	objModaloo.scrolling = "auto";
	objModaloo.run();
}
</script>
</head>
<body>
<p>
  <input type="button" name="button" id="button" value="Confirm" onclick="return confirm('Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? Are you sure? '); alert('ok')" />
  <input type="submit" name="button2" id="button2" value="Alert" onclick="alert('Demostration of modaloo examples')" />
  <input type="submit" name="button3" id="button3" value="callAlert" onclick="callAlert()" />
  <input type="submit" name="button7" id="button7" value="callConfirm" onclick="callConfirm()" />
  <label for="button4"></label>
  <input type="submit" name="button4" id="button4" value="CallIframe" onclick="callIframe()" />
  <input type="submit" name="button5" id="button5" value="callDiv" onclick="callDiv()" />
  <input type="submit" name="button6" id="button6" value="callNothing" onclick="callNothing()" />
</p>
<script>
alert('demostration of modaloo examples');
</script>
</body>
</html>
